﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001167 RID: 4455
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetHeadIconScRsp : IMessage<SetHeadIconScRsp>, IMessage, IEquatable<SetHeadIconScRsp>, IDeepCloneable<SetHeadIconScRsp>, IBufferMessage
	{
		// Token: 0x17003860 RID: 14432
		// (get) Token: 0x0600C762 RID: 51042 RVA: 0x00219D4C File Offset: 0x00217F4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetHeadIconScRsp> Parser
		{
			get
			{
				return SetHeadIconScRsp._parser;
			}
		}

		// Token: 0x17003861 RID: 14433
		// (get) Token: 0x0600C763 RID: 51043 RVA: 0x00219D53 File Offset: 0x00217F53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetHeadIconScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003862 RID: 14434
		// (get) Token: 0x0600C764 RID: 51044 RVA: 0x00219D65 File Offset: 0x00217F65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetHeadIconScRsp.Descriptor;
			}
		}

		// Token: 0x0600C765 RID: 51045 RVA: 0x00219D6C File Offset: 0x00217F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconScRsp()
		{
		}

		// Token: 0x0600C766 RID: 51046 RVA: 0x00219D74 File Offset: 0x00217F74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconScRsp(SetHeadIconScRsp other) : this()
		{
			this.currentHeadIconId_ = other.currentHeadIconId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C767 RID: 51047 RVA: 0x00219DA5 File Offset: 0x00217FA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconScRsp Clone()
		{
			return new SetHeadIconScRsp(this);
		}

		// Token: 0x17003863 RID: 14435
		// (get) Token: 0x0600C768 RID: 51048 RVA: 0x00219DAD File Offset: 0x00217FAD
		// (set) Token: 0x0600C769 RID: 51049 RVA: 0x00219DB5 File Offset: 0x00217FB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurrentHeadIconId
		{
			get
			{
				return this.currentHeadIconId_;
			}
			set
			{
				this.currentHeadIconId_ = value;
			}
		}

		// Token: 0x17003864 RID: 14436
		// (get) Token: 0x0600C76A RID: 51050 RVA: 0x00219DBE File Offset: 0x00217FBE
		// (set) Token: 0x0600C76B RID: 51051 RVA: 0x00219DC6 File Offset: 0x00217FC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C76C RID: 51052 RVA: 0x00219DCF File Offset: 0x00217FCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetHeadIconScRsp);
		}

		// Token: 0x0600C76D RID: 51053 RVA: 0x00219DDD File Offset: 0x00217FDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetHeadIconScRsp other)
		{
			return other != null && (other == this || (this.CurrentHeadIconId == other.CurrentHeadIconId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C76E RID: 51054 RVA: 0x00219E1C File Offset: 0x0021801C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurrentHeadIconId != 0U)
			{
				num ^= this.CurrentHeadIconId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C76F RID: 51055 RVA: 0x00219E74 File Offset: 0x00218074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C770 RID: 51056 RVA: 0x00219E7C File Offset: 0x0021807C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C771 RID: 51057 RVA: 0x00219E88 File Offset: 0x00218088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurrentHeadIconId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CurrentHeadIconId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C772 RID: 51058 RVA: 0x00219EE4 File Offset: 0x002180E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurrentHeadIconId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurrentHeadIconId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C773 RID: 51059 RVA: 0x00219F3C File Offset: 0x0021813C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetHeadIconScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurrentHeadIconId != 0U)
			{
				this.CurrentHeadIconId = other.CurrentHeadIconId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C774 RID: 51060 RVA: 0x00219F8C File Offset: 0x0021818C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C775 RID: 51061 RVA: 0x00219F98 File Offset: 0x00218198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CurrentHeadIconId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005025 RID: 20517
		private static readonly MessageParser<SetHeadIconScRsp> _parser = new MessageParser<SetHeadIconScRsp>(() => new SetHeadIconScRsp());

		// Token: 0x04005026 RID: 20518
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005027 RID: 20519
		public const int CurrentHeadIconIdFieldNumber = 3;

		// Token: 0x04005028 RID: 20520
		private uint currentHeadIconId_;

		// Token: 0x04005029 RID: 20521
		public const int RetcodeFieldNumber = 10;

		// Token: 0x0400502A RID: 20522
		private uint retcode_;
	}
}
